package com.rxh.mapper.merchant;

import com.rxh.mapper.base.BaseMapper;
import com.rxh.pojo.merchant.MerchantRatePercent;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface MerchantRatePercentMapper extends BaseMapper<MerchantRatePercent, Long>{

    int deleteByParam(Map<String, Object> param);

    MerchantRatePercent selectByParam(MerchantRatePercent entity);

	int deleteByIds(String ids);

    BigDecimal selectRatePercentByTypeValue(String typeValue);

    BigDecimal selectRatePercentByMerIdAndCurrency(@Param("merId") String merId, @Param("currency") String currency);

    BigDecimal selectRatePercentByMerId(String merId);

    BigDecimal selectRatePercentByCurrency(String currency);

    BigDecimal selectRatePercentUniversal();

	int getMerchantRatePercentAllResultCount(Map<String, Object> paramMap);

    List<MerchantRatePercent> selectAll();
}